<%--
  Created by IntelliJ IDEA.
  User: 还能在秀一下吗
  Date: 2021/12/6
  Time: 14:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户登录</title>
    <link rel="stylesheet" href="assets/css/login.css"/>
</head>
<body>
<div class="big-container">
    <h1>用户登录</h1>
    <%--    此处action可跳转servlet也可跳转jsp--%>
    <form class="login-container" action="/qhwlogin" method="post">
        <div class="login-container">
            <div class="login-items">
                <label for="username" >登陆账号</label>
                <input name="u" type="text" id="username">
            </div>
            <div class="login-items">
                <label for="password">登陆密码</label>
                <input name="p" type="password" id="password">
            </div>

            <div class="login-items">
                <label>验证码</label>
                <input name="c" type="text" class="login-code">
                <img href="javascript:void(0)"onclick="changeCode()" src="/qhwCode" id="cc" >
                <%--            <a href="javascript:void(0)"onclick="changeCode()"> 看不清，换一张</a>--%>
            </div>
            <div class="login-items">
                <button type="submit">登录</button>

            </div>
        </div>
    </form>
</div>

</body>
<script>
    function changeCode() {
        cc.src= "/qhwCode?t"+Math.random()
    }


</script>
</html>
